package com.woogie.serv;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;

import com.woogie.serv.async.DataFromServer;

public class MainService extends Service{

	public static Intent intent = null;
	public static MainService service;
	
	@Override
	public IBinder onBind(Intent arg0) {
		return null;
	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		new DataFromServer().execute();
		service = this;
		
		Toast.makeText(this, "Service Started from start cmd", 1000).show();
		return super.onStartCommand(intent, flags, startId);
	}
}
